/* Copyright (C) 2010 Luca Piccinelli
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* 
 * File:   skin_recognition.h
 * Author: picci
 *
 * Created on January 2, 2011, 11:14 AM
 */

#ifndef SKIN_RECOGNITION_H
#define	SKIN_RECOGNITION_H

#include <cv.h>

#include "gestface.h"
#include "machine_learning/statistical_models/normal_bayes_model.h"
#include "imgops/skin/functions/skin_train.h"

namespace NAMESPACE{

void skin_recognition_nbayes( const cv::Mat& src,
                              const NormalBayesModel& model,
                              cv::Mat& out_mask,
                              CVT_SPACE cvt_space = YCRCB,
                              int _class = 1);

void adaptive_skin_recognition_nbayes( const cv::Mat& src,
                                       const NormalBayesModel& model_off,
                                       const NormalBayesModel& model_on,
                                       cv::Mat& out_mask,
                                       double gain,
                                       CVT_SPACE cvt_space = YCRCB,
                                       int _class = 1 );

}

#endif	/* SKIN_RECOGNITION_H */

